package api.ejb;

import java.util.List;

import javax.ejb.Remote;
import javax.jws.WebParam;
import javax.jws.WebService;

import p3_entities.Balance;
import p3_entities.Lindenmovement;



@WebService
@Remote
public interface IWallet{
	
	public static enum MovementsType {
		UNKNOWN, RELOAD, BET, PRIZE
	}
	
	
	boolean reloadLinden(int uid, int amount, MovementsType type);
	
	List<Lindenmovement> getMovements(int uid); 
	
	boolean debitLinden(Integer uid, Integer amount);
	
	boolean checkOperation(@WebParam(name = "uid") int uid, @WebParam(name = "amount") int amount);
	
	Balance getUserBalance(int uid);


}
